<%@page import="com.itwill.ecom.board.BoardBeans"%>
<%@page import="java.util.List"%>
<%@page import="java.util.HashMap"%>
<%@page import="com.itwill.ecom.board.BoardServiceImpl"%>
<%@page import="org.springframework.web.context.support.WebApplicationContextUtils"%>
<%@page import="org.springframework.web.context.WebApplicationContext"%>
<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>

<%
	WebApplicationContext webContext = WebApplicationContextUtils.getWebApplicationContext(application);
	BoardServiceImpl boardService=(BoardServiceImpl)webContext.getBean("boardService");
	
	HashMap<String, String> pageMap = new HashMap<String, String>();
	pageMap.put("startNo", "1");
	pageMap.put("endNo", "20");
	pageMap.put("type", "1");
	
	List<BoardBeans> resultList = boardService.getBoardByType(pageMap);
	
	for(BoardBeans temp : resultList){
%>

	<%= temp.getBoard_no() %> | <%= temp.getBoard_id() %> | <%= temp.getBoard_nickname() %> | <%= temp.getBoard_type() %> | <%= temp.getBoard_title() %> | <%= temp.getBoard_content() %> | <%= temp.getBoard_show() %> | <%= temp.getBoard_no() %> | <%= temp.getBoard_recommend() %>
	<br/>

<%
	}
%>